package org.ovirt.microvirt.beans.plan;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
@DiscriminatorColumn(name="reqtype", discriminatorType=DiscriminatorType.STRING, length=8)
public class Requirement {
	@Id
	@XmlAttribute(name="id")
	long id;
	@Column(name="enabled", updatable=true)
	@XmlAttribute(name="enabled")
	boolean enabled = true;
	@XmlElement(name="description")
	@Column(length=4096, nullable=true, updatable=true, name="descr")
	String description;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
}
